package com.shop2cn.iapi.member.service;

import java.util.ArrayList;

import com.google.gson.reflect.TypeToken;
import com.shop2cn.iapi.member.parameter.MchMemberInfoDto;
import com.shop2cn.iapi.member.parameter.MchMemberInfoResp;
import com.shop2cn.iapi.member.parameter.QueryMemberByMobileResp;
import com.ymatou.iapi.livebuyer.parameter.LiveRoomInfo;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*FreeMaker Template自动生成代码
*/
public class QueryMemberByMobileCall extends YmatouBaseCall{
	private static String opurl ="api/QueryMemberByMobile";
	
	public QueryMemberByMobileCall() {
		super(EnvSetup.getSystemUrl("member_shop2n"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	public QueryMemberByMobileResp getQueryMemberByMobileResp()
    {
		QueryMemberByMobileResp data = null;
        try {
        	data=(QueryMemberByMobileResp) FormatUtil.GSONToObject(getJsonObject().get("data").toString(), new TypeToken<QueryMemberByMobileResp>() {}.getType());
        } catch (Exception e) {
            e.printStackTrace();
        }
        return data;
    }
}